public class Feature implements Comparable<Feature>{
  String feature_;
  int count_;
  
  public Feature(String s) {
    feature_ = s;
    count_ = 1;
  }
  
  public void addCount() {
    count_++;
  }
  
  public String toString() {
    return feature_ + ": " + count_;
  }
  
  public String getFeature() {
    return feature_;
  }
  
  public int getCount() {
    return count_;
  }
  
  public int compareTo(Feature f) {
    return f.getCount() - getCount();
  }
}
